package com.blb.ioc.demo.servlet;

import com.blb.ioc.demo.entity.Student;
import com.blb.ioc.demo.service.IStudentService;
import com.blb.ioc.demo.util.SpringUtils;

public class StudentServlet {

    private IStudentService studentService = SpringUtils.getBean(IStudentService.class);

    public void test(){
        studentService.addStudent(new Student());
    }

    public static void main(String[] args) {
        StudentServlet studentServlet = new StudentServlet();
        studentServlet.test();
    }
}
